package czy.demo.repository;

import czy.demo.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/* 用户仓库 */
@Repository
public interface UserRepository extends JpaRepository<User,Integer> {

    /* 根据用户名查询用户 */
    User findByUsername(String username);

}
